package api.sea;

import conf.Url;
import org.apache.commons.lang3.RandomStringUtils;
import util.HttpClientUtils;
import util.ResponseData;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Map;

public class StuffApi {
    private static final String stuff_url= Url.Base_Url+ "consumer/lgsWtd2/process";
    public ResponseData stuff(String systemNumber,String mainNumber,String voyageName,String cutAmsDate,int state) throws IOException, URISyntaxException {
        Map<String,Object> data=new HashMap<>();
        data.put("systemNumber",systemNumber);
        data.put("mainNumber",mainNumber);
        data.put("voyageName",voyageName);
        data.put("cutAmsDate",cutAmsDate);
        data.put("state",state);
        return HttpClientUtils.post_json(stuff_url,data);

    }
}
